﻿using System;
using System.Collections.Generic;

namespace Delphi.Mimir.Data.Entities.Final {
    public class Exchange {
        public Exchange() {
            Symbols = new List<Symbol>();
            LoadControls = new List<LoadControl>();
        }
        public int ExchangeId { set; get; }
        public string Code { set; get; }
        public string Name { set; get; }
        public string Lable {
            get {
                return string.Format("{0} - {1}", Code, Name);
            }
        }
        public string Lable2 {
            get {
                return string.Format("{0} ({1})", Name, Code);
            }
        }
        public bool? HasIntraDayProduct { set; get; }
        public bool? IsActive { set; get; }
        public TimeZone TimeZone { set; get; }
        public int? TimeZoneId { set; get; }
        public virtual ICollection<Symbol> Symbols { set; get; }
        public int? CurrencyId { set; get; }
        public Currency Currency { set; get; }
        public int? CountryId { set; get; }
        public Country Country { set; get; }
        public string Suffix { set; get; }
        public virtual ICollection<LoadControl> LoadControls { set; get; }
        public TimeSpan? LocalOpeningHour { set; get; }
        public TimeSpan LocalClosingHour { set; get; }
    }
}
